<!-- 引入  userTop.html -->
<include file="userTop" />

<!-- 引入  navLeftOne.html -->
<include file="navLeftTwo" />


            <div class="userRight">
                <div class="userRightContent">
                    <div class="upfileDiv" id="upfileDiv">
                        <div class="upfileClose" onclick="hideDiv('upfileDiv')">关闭</div>
                        <iframe width="300" height="100" style=" padding:0px; margin:0px;" src="actionUpLoad.aspx?tn=pic&fn=userMessEdit" frameborder="0" scrolling="no"></iframe>
                    </div>
                    <div class="userRightContentTop">提交商家资料</div>
                    <form action="action.aspx?s=usermess" onsubmit="return valiForm()" method="post" name="userMessEdit">
                        <table width="810" class="userMessTable" border="0" cellspacing="0" cellpadding="5">
                            <tr>
                                <td class="head" width="100">企业图标</td>
                                <td width="390">
                                    <input class="inputText" onclick="alert('请点击上传，进行修改！')" value="" name="pic" type="text" size="40" />　<a href="/" target="_blank">[查看]</a> <a href="#nogo" onclick="showDiv('upfileDiv')">[上传]</a></td>
                                <td width="230" class="commentary"><img src="__PUBLIC__/Home/images/wenhao.gif" />公司的标志或LOGO</td>
                            </tr>
                            <tr>
                                <td class="head">企业分类</td>
                                <td>
                                    <div class="select">
                                        <div>
                                            <select name="sort" id="selectMainSort" onChange="showSort(this.value)">
                                                <option value="" selected="selected">请选择</option>
                                                <option value="便民">便民</option>
                                                <option value="摄影">摄影</option>
                                                <option value="学校">学校</option>
                                                <option value="餐饮">餐饮</option>
                                                <option value="服饰">服饰</option>
                                                <option value="家装">家装</option>
                                                <option value="住宿">住宿</option>
                                                <option value="娱乐">娱乐</option>
                                                <option value="百货">百货</option>
                                                <option value="家电">家电</option>
                                                <option value="美容美发">美容美发</option>
                                                <option value="汽车">汽车</option>
                                                <option value="医保">医保</option>
                                                <option value="其它">其它</option>
                                            </select>
                                            <select name="sort_1" id="selectSort">
                                                <option value="">请选择</option>
                                            </select>
                                            <script language="javascript">
                                                function showSort(cityName) {
                                                    var cityStr = "便民,家政中心,搬家开锁,电脑家电维修,水暖电维修,送水送气,租车,快递,打字复印,运输物流,干洗擦鞋|摄影,婚纱摄影,儿童摄影|学校,补习班,培训机构,幼儿园,音乐舞蹈|餐饮,特色餐饮,绿色农家,烧烤店,火锅店,饭店,餐馆,西餐厅,快餐店,小吃|服饰,品牌店,服装店,内衣店,童装店,饰品店,鞋帽箱包|家装,五金建材,家具店,灯饰店,家居饰品,装潢材料|住宿,宾馆,招待所,客房|娱乐,旅游,网吧,酒吧,足浴水疗,瑜伽馆,KTV,养生馆,桌球城,健身房|百货,眼镜店,花店水族,化妆品,精品店,烟/酒/茶,超市,生活日杂,母婴用品,玩具店,文体用品,书店音像,乐器工艺品,佛教用品|家电,手机通讯,电脑数码,家电商场,维修|美容美发,美容院,美发美甲,减肥中心,SPA馆|汽车,机动车,非机动车,修配厂,轮胎店,汽车美容|医保,医院,诊所,药店,保健品,医疗器械|其它,广告制作,矿山设备,设备租用,畜牧养殖,其它|"
                                                    var city = cityStr.split("|")
                                                    selectBorough = document.getElementById("selectSort")
                                                    if (cityName != "") {
                                                        for (i = 0; i < city.length; i++) {
                                                            selectBorough.style.width = "0px"
                                                            selectBorough.style.width = "auto"
                                                            arrayBorough = city[i].split(",")
                                                            if (arrayBorough[0] == cityName) {
                                                                selectBoroughLangth = selectBorough.options.length
                                                                    /*删除地区的所有值*/
                                                                for (t = 0; t < selectBoroughLangth; t++) {
                                                                    selectBorough.remove(0)
                                                                }
                                                                for (t = 1; t < arrayBorough.length; t++) {
                                                                    boroughOption = document.createElement("option")
                                                                    boroughOption.appendChild(document.createTextNode(arrayBorough[t]))
                                                                    boroughOption.setAttribute("value", arrayBorough[t]);
                                                                    selectBorough.appendChild(boroughOption)
                                                                }
                                                            }
                                                        }

                                                    } else {
                                                        selectBoroughLangth = selectBorough.options.length
                                                            /*删除地区的所有值*/
                                                        for (t = 0; t < selectBoroughLangth; t++) {
                                                            selectBorough.remove(0)
                                                        }
                                                        boroughOption = document.createElement("option")
                                                        boroughOption.appendChild(document.createTextNode("请选择"))
                                                        boroughOption.setAttribute("value", "")
                                                        selectBorough.appendChild(boroughOption)
                                                    }
                                                }
                                            </script>
                                        </div>
                                    </div>
                                </td>
                                <td class="commentary"></td>
                            </tr>
                            <tr>
                                <td class="head">所在地</td>
                                <td>
                                    <div class="select">
                                        <div>
                                            <div>
                                                <select name="address" onchange="acLoadAddress(this.value,'')" id="address">
                                                    <option value="">请选择</option>
                                                    <option value="120">虎林市区</option>
                                                    <option value="119">虎林乡镇</option>
                                                    <option value="133">虎林农场</option>
                                                    <option value="134">虎林周边</option>
                                                </select>
                                            </div>
                                            <div id="divKfCity"></div>
                                            <script>
                                                function acLoadAddress(a, v) {
                                                    $("#divKfCity").load("/services/index.aspx?s=ajaxCity&city=" + a + "&name=city&value=" + v);
                                                }
                                            </script>
                                        </div>
                                    </div>
                                </td>
                                <td class="commentary">&nbsp;</td>
                            </tr>
                            <tr>
                                <td class="head">企业名称</td>
                                <td>
                                    <input name="name" value="" type="text" class="inputText" size="40" />
                                </td>
                                <td class="commentary">&nbsp;</td>
                            </tr>
                            <tr>
                                <td class="head">电话</td>
                                <td>
                                    <input name="phone" value="" type="text" class="inputText" size="25" />
                                </td>
                                <td class="commentary"><img src="__PUBLIC__/Home/images/wenhao.gif" />格式为 城市区号-电话号 </td>
                            </tr>
                            <tr>
                                <td class="head">手机</td>
                                <td>
                                    <input name="tel" value="" type="text" class="inputText" size="25" />
                                </td>
                                <td class="commentary">&nbsp;</td>
                            </tr>
                            <tr>
                                <td class="head">ＱＱ</td>
                                <td>
                                    <input name="qq" value="" type="text" class="inputText" size="25" />
                                </td>
                                <td class="commentary">&nbsp;</td>
                            </tr>
                            <tr>
                                <td class="head">Email</td>
                                <td>
                                    <input name="email" value="" type="text" class="inputText" size="25" />
                                </td>
                                <td class="commentary"></td>
                            </tr>
                            <tr>
                                <td class="head">营业时间</td>
                                <td>
                                    <input name="businesshours" value="" type="text" class="inputText" size="50" />
                                </td>
                                <td class="commentary">&nbsp;</td>
                            </tr>
                            <tr>
                                <td class="head">企业地址</td>
                                <td>
                                    <input name="address_1" value="" type="text" class="inputText" size="50" />
                                </td>
                                <td class="commentary">&nbsp;</td>
                            </tr>
                            <tr>
                                <td class="head">企业简介</td>
                                <td>
                                    <textarea class="inputText" name="about" rows="6" cols="50"></textarea>
                                </td>
                                <td class="commentary">&nbsp;</td>
                            </tr>
                            <tr>
                                <td></td>
                                <td>
                                    <input type="submit" class="inputSubmit" value="提交商家资料" />
                                </td>
                                <td></td>
                            </tr>
                        </table>
                    </form>
                    <script language="javascript" type="text/javascript">
                        function changeElementName(elementName, elementValue) {
                            var objElement = document.getElementById(elementName);
                            var lenElement = objElement.options.length;
                            for (i = 0; i < lenElement; i++) {
                                if (objElement[i].value == elementValue) {
                                    objElement[i].selected = true;
                                }
                            }
                        }

                        function showDiv(divId) {
                            document.getElementById(divId).style.display = "block"
                        }

                        function hideDiv(divId) {
                            document.getElementById(divId).style.display = "none"
                        }

                        sort = ""
                        if (sort != "") {
                            for (i = 0; i < document.userMessEdit.address.options.length; i++) {
                                if (document.userMessEdit.address.options[i].value == sort) {
                                    document.userMessEdit.address.options[i].selected = true
                                }
                            }
                        }
                        acLoadAddress("", "")
                        changeElementName("selectMainSort", "")
                        showSort("")
                        changeElementName("selectSort", "")

                        function valiForm() {
                            if (document.userMessEdit.name.value.length > 50) {
                                alert("填写企业名称请保持在50字以内！")
                                return false
                            }
                            if (document.userMessEdit.address_1.value.length > 100) {
                                alert("填写企业地址请保持在100字以内！")
                                return false
                            }
                            if (document.userMessEdit.phone.value.length > 15) {
                                alert("填写电话号请保持在15字以内！")
                                return false
                            }
                            if (document.userMessEdit.tel.value.length > 11) {
                                alert("填写手机号请保持在11字以内！")
                                return false
                            }
                            if (document.userMessEdit.qq.value.length > 11) {
                                alert("填写QQ号请保持在11字以内！")
                                return false
                            }
                            return true
                        }
                    </script>
                </div>
            </div>
        </div>
    </div>
</body>

</html>